package com.cqz.mapper;

import com.cqz.dao.OrderInfo;
import com.cqz.pojo.OrderAndBook;

import java.util.HashMap;
import java.util.List;

public interface OrderInfoMapper {
    int deleteByPrimaryKey(Integer oid);
    int deleteByBid(OrderInfo record);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    OrderInfo findByBIdAndUid(OrderInfo record);
    List<OrderInfo> findStateHasPay(OrderInfo record);
    List<OrderInfo> findStateNotPay(OrderInfo record);
    List<OrderAndBook> selectAllOrders(HashMap<String,Object> map);

    List<OrderAndBook> selectkindOrders(HashMap<String,Object> map);

    OrderInfo selectByPrimaryKey(Integer oid);

    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);
}